protocol CreditCheck (role Client) { Client introduces CreditAgency; CheckCredit from Client to CreditAgency; choice at CreditAgency { CreditOk from CreditAgency to Client; } or { NoCredit from CreditAgency to Client; } }
This example shows how a Client role performs a credit check
against a CreditAgency role.
protocol CreditCheck (role Client) { Client introduces CreditAgency; CheckCredit from Client to CreditAgency; choice at CreditAgency { CreditOk from CreditAgency to Client; } or { NoCredit from CreditAgency to Client; } }